package com.zf.wms.purview.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

/**
 * Author：sl
 * Date：2019-11-05 13:43
 * Description：<描述>
 */
 @TableName("tab_menubutton")
public class Purview implements Serializable {

    //ID
     @TableId(type = IdType.AUTO)
    private Integer menuId;
    //菜单名称
    private String menuName;
    //菜单级别
    private Integer menuLevel;
    //菜单URL
    private String menuUrl;
    //菜单图标
    private String menuIcon;
    //是否启用(1:启用,0:禁用)
    private Integer active;
    //是否只读(1:是,0:否)
    private Integer readOnly;
    //父级ID
    private Integer parentId;
    //同级序号
    private Integer serialNumber;
    //创建人
    private String createUser;
    //创建时间
    private String createTime;
    //修改人
    private String updateUser;
    //修改时间
    private String updateTime;

    //子菜单
    @TableField(exist = false)
    private List<Purview> children;

    public Purview() {
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(Integer menuLevel) {
        this.menuLevel = menuLevel;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Integer getReadOnly() {
        return readOnly;
    }

    public void setReadOnly(Integer readOnly) {
        this.readOnly = readOnly;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Integer serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<Purview> getChildren() {
        return children;
    }

    public void setChildren(List<Purview> children) {
        this.children = children;
    }
}
